﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DVSProject.Models.SignagesRemarkModels>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>
    <div class="CSSTableGenerator">
    <table>
        <tr>
            <th></th>
            <th>
                Id
            </th>
            <th>
                SignagesRemarkTh
            </th>
            <th>
                SignagesRemarkEng
            </th>
            <th>
                Status
            </th>
            <th>
                CreateBy
            </th>
            <th>
                CreateOn
            </th>
            <th>
                UpdateBy
            </th>
            <th>
                UpdateOn
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id= item .Id /* id=item.PrimaryKey */ }) %> |
                <%= Html.ActionLink("Details", "Details", new { id = item.Id /* id=item.PrimaryKey */ })%> |
                <%= Html.ActionLink("Delete", "Delete", new { id = item.Id/* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%= Html.Encode(item.Id) %>
            </td>
            <td>
                <%= Html.Encode(item.SignagesRemarkTh) %>
            </td>
            <td>
                <%= Html.Encode(item.SignagesRemarkEng) %>
            </td>
            <td>
                <%= Html.Encode(item.Status) %>
            </td>
            <td>
                <%= Html.Encode(item.CreateBy) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.CreateOn)) %>
            </td>
            <td>
                <%= Html.Encode(item.UpdateBy) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.UpdateOn)) %>
            </td>
        </tr>
    
    <% } %>

    </table></div>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

